package javacafe.action.admin;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javacafe.action.Action;
import javacafe.action.ActionForward;
import javacafe.dto.member.MemberDTO;
import javacafe.paging.PageBean;
import javacafe.paging.PageUtil;
import javacafe.serviceimple.MemberServiceImple;
import javacafe.serviceimple.PagingServiceImple;

public class CustMgrAction implements Action {

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {

		if (request.getSession().getAttribute("") != null) {
			
		}
		ActionForward actfoward = new ActionForward();

		List<MemberDTO> list = null;
		PagingServiceImple service = PagingServiceImple.getInstance();
		try {
			PageUtil.pageContollerHelp(service, request, 5, 5, "getMemberCountPaging", "getAllMember", false);
		} catch (ServletException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
				
		request.setAttribute("list",list);
		actfoward.setUrl("custmgr");
		
		return actfoward;
	}
}
